package com.ffyc.ssm.service;

import com.ffyc.ssm.dao.LinksDao;
import com.ffyc.ssm.modle.Links;
import com.ffyc.ssm.modle.News;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LinksService {
    @Autowired
    private LinksDao dao;


    public List<Links> findList() {
        return dao.findList();
    }

    public void delete(Integer id) {
        dao.delete(id);
    }

    public void save(Links links) {
        dao.save(links);
    }
}
